<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Qlik-style BI Product Website</title>
<!--  <link rel="stylesheet" href="styles.css">-->
<!--  <script src="script.js"></script>-->
</head>
<body>
<main>
  Helloween
  <section id="result">
    我问问<p id="quarterResult"></p>
  </section>
</main>
<script>
  function getQuarter(dateString) {
    const date = new Date(dateString);
    const year = date.getFullYear();
    const month = date.getMonth();
    const quarter = Math.ceil((month + 1) / 3);
    return `${year}年第${quarter}季度`;
  }
  const dateString = '2023-08-15';
  const quarter = getQuarter(dateString);
  // 使用 DOM 操作更新网页上的元素
  document.getElementById('quarterResult').innerHTML = quarter;
</script>
</body>
</html>